﻿@using kxcxw.Data.Common
@model PagedList<kxcxw.Data.Entities.Activity>
@{
    ViewBag.Title = "开心促销网-我的促销活动";
    Layout = "~/Views/Shared/_ContentLayout.cshtml";
    ViewBag.LeftMenuName = "_LeftForMyInfoList";
}
<style type="text/css">
    .body
    {
        width: 740px;
        padding: 0px 15px 20px 15px;
        border: none;
    }
</style>
<div class="seachresults big">
    <div class="account_box">
        @{
            DateTime TempDate = DateTime.Now.AddDays(-DataConstants.ExpirationDay);
        }
        您总共发布了<em>@Model.Count()</em>条活动信息，其中<em>@Model.Where(q => ((q.EndDate == null && q.CreateDate.CompareTo(TempData) > 0) || q.EndDate < DateTime.Now)).Count()</em>条已过期,
        <em>@Model.Where(q => q.Status == DataConstants.Deleted).Count()</em>条已删除信息, <em>@Model.Where(q => q.Status == DataConstants.Illegal).Count()</em>条不合法信息
    </div>
    <div class="tab">
        <ul>
            <li class="@((Request.QueryString["type"] != null ? Request.QueryString["type"].ToString() : "1") == "1" ? "curr" : "")">
                <s></s><b></b>@Html.ActionLink("网店信息", "MyActivity", new { type = 1 })</li>
            <li class="@((Request.QueryString["type"] != null ? Request.QueryString["type"].ToString() : "1") == "2" ? "curr" : "")">
                <s></s><b></b>@Html.ActionLink("实体店信息", "MyActivity", new { type = 2 })</li>
        </ul>
    </div>
    @{Html.RenderPartial("List", Model); }
</div>
